home *** CD-ROM | disk | FTP | other *** search
- function utLocalConnUniqueID()
- {
- var nRet = uniqueHelpID;
- if(nRet != undefined)
- {
- return nRet;
- }
- var cParent = _parent;
- while(cParent != undefined)
- {
- nRet = cParent.uniqueHelpID;
- if(nRet != undefined)
- {
- return nRet;
- }
- cParent = cParent._parent;
- }
- return 0;
- }
- function SendMsgToDebug(msg, time)
- {
- var outgoing_lc = new LocalConnection();
- outgoing_lc.send("WildfireDebugSWF","Message",msg,time);
- delete outgoing_lc;
- return undefined;
- }
- function Debug_alert(msg)
- {
- var strSend = "javascript:alert(";
- strSend += "\'" + msg + "\'";
- strSend += ");";
- getURL(strSend,"");
- undefined;
- return undefined;
- }
- function Debug_trace(msg)
- {
- }
- function Debug_timer(msg)
- {
- var date = new Date();
- var time = date.getTime();
- SendMsgToDebug(msg,time);
- }
- function CStageListener()
- {
- this.onResize = function()
- {
- if(_parent._visible)
- {
- m_cApp.OnPageResized();
- }
- };
- }
- function DoCommand(strCmd, cSender, strText)
- {
- Selection.setSelection(0,256);
- m_cApp.Search(strText);
- }
- function ItemLoaded(cSender)
- {
- m_cApp.InitSearchInputField(cSender);
- }
- var uniqueHelpID = utLocalConnUniqueID();
- Stage.addListener(new CStageListener());
- Stage.scaleMode = "noScale";
- Stage.align = "TL";
-